$(document).ready(function(){
	var validator = $("#frmpaypalDetails").validate({
		errorElement:'div',
		rules: {
			api_key: {
				required: true
			},
			password: {
				required: true,
				minlength:6,
				maxlength:20
			},
			secrete_key: {
				required: true
			}
		},
		messages: {
			api_key: {
				required:"Please enter api key"
			},
			password: {
				required: "Please enter password",
				minlength:"Password must be at least 6 characters long",
				maxlength:"Password must not be greater than 20 characters"				
			},
			secrete_key: {
				required: "Please enter secrete key"
			}
		}
	});	
 
	
});